import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import { renderRoutes } from 'react-router-config';
import routes from './routes';
import { history, store } from './store/configureStore';
import './app.less';

render(
  <Provider store={store}>
    <ConnectedRouter history={history}>
      <div>
        {renderRoutes(routes)}
      </div>
    </ConnectedRouter>
  </Provider>,
  document.getElementById('root')
);
